#include <stdio.h>

//https://www.nowcoder.com/practice/b007744eb43b4f7b95d9e87de01528db?tpId=290&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D290

int main() {
    int num = 0;
    int sum = 0;
    scanf("%d", &num);
    while (num--) {
        int n = 0;
        scanf("%d", &n);
        sum += n;
    }
    printf("%d", sum);
    return 0;
}